<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>AJAX</title>
       <style>
           #box{
            padding: 20px;
            background-color: #feed;
           }
       </style>


        <script src="__PUBLIC__/js/jquery.min.js"></script>
    </head>

    <body>
    <h1>AJAX</h1>
    <button >加载</button>
    <div id="box"></div>
        <script>
          $(function(){
           $('button').click(function(){
                $.ajax({
                 type:'get',
                 url:"<{:U('User/index')}>",
                 success:function(data){
                  $('#box').html(data);
                 },

                })
           })
          })
        </script>



        


    </body>
</html>